package com.kizuki.controller;

import com.kizuki.annotaion.WebLog;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class MyAopController {

    @WebLog(desc = "hello world请求")
    @GetMapping("/h")
    public String helloWorld(){
        log.info("真正的调用：Print Hello World!");
        return "Hello World!";
    }

    @GetMapping("/g")
    public String goodBye(){
        return "Bye!";
    }


}
